<template>
    <div class="components_table_details">
        <el-dialog width="1000px" title="院校信息"  :visible.sync="state" :show-close="true" :close-on-click-modal="false" class="maxheight">
          <table class="el-table el-table--fit el-table--striped el-table--border el-table--enable-row-transition ">
            <tbody class="el-table__body">
              <tr>
                <td width="120px"><label>院校名称：</label></td>
                <td width="300px">{{schoolParams.name}}</td>
                <td width="120px"><label>院校性质：</label></td>
                <td width="300px">{{schoolParams.typeShow}}</td>
              </tr>
              <tr>
                <td width="120px"><label>所在省份：</label></td>
                <td width="300px">{{schoolParams.provinceName}}</td>
                <td width="120px"><label>所在城市：</label></td>
                <td width="300px">{{schoolParams.cityName}}</td>
              </tr>
              <tr>
                <td width="120px"><label>所属区域：</label></td>
                <td width="300px">{{schoolParams.officeName}}</td>
                <td width="120px"><label>校区主管：</label></td>
                <td width="300px">{{schoolParams.schoolManageName}}</td>
              </tr>
              <tr>
                <td><label>备注：</label></td>
                <td colspan="5">{{schoolParams.remark}}</td>
              </tr>
        </tbody>
          </table>
          <div slot="footer" class="dialog-footer">
                <el-button @click="state = false"  size="mini">关 闭</el-button>
            </div>
        </el-dialog>
        </div>
    
</template>

<script>
    import {enums} from '@/constant'
    export default {
        data() {

            return {
                state: false,
                schoolParams: {
                    name:null,
                    typeShow:null,
                    officeName:null,
                    provinceName:null,
                    cityName:null,
                    schoolManageName:null,
                    remark:null
                }
            }
        },
        created() {
            //获取校区主管
           
        },
        mounted() {},
        methods: {
            //获取编辑信息
            showDialog(schoolId){
                let vm = this;
                vm.state = true;
                    vm.axios.get(api.getSchoolDetail+schoolId).then((response) => {
                    if (response.data.success) {
                        let schoolDetail = JSON.parse(JSON.stringify(response.data.data));
                        let schoolParams ={
                            id:schoolId,
                            name:schoolDetail.name,
                            typeShow:schoolDetail.typeShow,
                            officeName:schoolDetail.officeName,
                            provinceName:schoolDetail.provinceName,
                            cityName:schoolDetail.cityName,
                            schoolManageName:schoolDetail.schoolManageName,
                            remark:schoolDetail.remark
                        }
                        vm.schoolParams = schoolParams;
                    } else {
                        vm.$message.error(response.data.msg);
                    }
                    })
                }
            },
    };
</script>
<style scoped>

</style>